<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../../component/layui/css/layui.css" media="all">
    <title>Title</title>
    <script src="../../../component/jquery3.6.0.js"></script>
</head>
<body>
<form class="layui-form" id="layui-form-id" action="" lay-filter="deliver_edit_form">
    <div class="layui-form-item">
        <label class="layui-form-label"><strong>机会编码</strong></label>
        <div class="layui-input-inline">
            <input id="chance_code" type="text" name="chance_code" lay-verify="title" autocomplete="off" placeholder="请输入计划编码" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><strong>机会名称</strong></label>
        <div class="layui-input-inline">
            <input id="chance_name" type="text" name="chance_name" placeholder="请输入姓名" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><strong>机会类型</strong></label>
        <div class="layui-input-inline">
            <input id="chance_typename" type="text" name="chance_typename" lay-verify="title" autocomplete="off" placeholder="请输入月份" class="layui-input">
        </div>
    </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label"><strong>机会内容</strong></label>
        <div class="layui-input-inline">
            <textarea id="cm_content"  name="cm_content" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label"><strong>备注信息</strong></label>
        <div class="layui-input-inline">
            <textarea id="des"  name="des" placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
</form>

<script type="text/javascript" src="../../../component/layui/layui.js"></script>

<script>
    layui.use(['form'], function(){
        var form = layui.form;
        $('#chance_code').val(parent.zs_chance_code);
        $('#chance_code').attr('readOnly','true');
        $('#chance_name').val(parent.zs_chance_name);
        $('#chance_name').attr('readOnly','true');
        $('#chance_typename').val(parent.zs_chance_typename);
        $('#chance_typename').attr('readOnly','true');
        $('#cm_content').val(parent.zs_cm_content);
        $('#cm_content').attr('readOnly','true');
        $('#des').val(parent.zs_des);
        $('#des').attr('readOnly','true');
    });


</script>
</body>
</html>